<?php if (!defined('THINK_PATH')) exit();?>
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>app</title>

    <!-- Bootstrap core CSS -->
    <link href="/appstore/Public/assets/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="/appstore/Public/assets/css/dashboard.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="/appstore/Public/assets/js/ie-emulation-modes-warning.js"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">App后台管理</a>
        </div>
      <!--  <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">
            <li><a href="#">Dashboard</a></li>
            <li><a href="#">Settings</a></li>
            <li><a href="#">Profile</a></li>
            <li><a href="#">Help</a></li>
          </ul>-->
          <form class="navbar-form navbar-right">
            <input type="text" class="form-control" placeholder="Search...">
          </form>
        </div>
      </div>
    </nav>
    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
          <ul class="nav nav-sidebar">
            <li class="active"><a href="<?php echo U('admin.php/index/index');?>">用户列表 <span class="sr-only">(current)</span></a></li>
            <li><a href="<?php echo U('admin.php/Apptype/index');?>">App类型列表</a></li>
            <li><a href="<?php echo U('admin.php/App/index');?>">App详细列表</a></li></ul>
       <!--     <li><a href="#">Export</a></li>
          
          <ul class="nav nav-sidebar">
            <li><a href="">Nav item</a></li>
            <li><a href="">Nav item again</a></li>
            <li><a href="">One more nav</a></li>
            <li><a href="">Another nav item</a></li>
            <li><a href="">More navigation</a></li>
          </ul>-->
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<h2>请填写app修改信息</h2>


<form action="<?php echo U('admin.php/App/update');?>" method="post" class="form-horizontal">

<input type="hidden" name="ydq_id" value="<?php echo ($one["ydq_id"]); ?>">

<br>
<div class="form-group">
    <label for="name" class="col-sm-2 control-label">App名称</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" name="ydq_typename" value="<?php echo ($one["ydq_appname"]); ?>" id="name" placeholder="Typename" required="">
    </div>
  </div>
<br>

<div class="form-group">
    <label for="dname" class="col-sm-2 control-label">开发者姓名(默认为当前登录用户)</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" name="ydq_developer"  id="dname" placeholder="Developer" value="<?php echo ($one["ydq_developer"]); ?>" required="">
    </div>
  </div>


  <div class="form-group">
    <label for="techname" class="col-sm-2 control-label">使用技术</label>
    <div class="col-sm-10">
     <select name="ydq_tech" id="techname" class="form-control" >
     <option value="请选择" >请选择</option>
     <option value="Android" >Android</option>
     <option value="JAVA"  >JAVA</option>
     <option value="PHP"  >PHP</option>
     <option value="C++"   >C++</option>
     </select>
    </div>
  </div>

    <div class="form-group">
    <label for="3" class="col-sm-2 control-label" >app类型</label>
    
    <div class="checkbox">
        <label  class="checkbox-inline" >

    <input type="checkbox" name="ydq_apptype[]" value="社交" id="3" >社交</input>
    </label>
    <label  class="checkbox-inline" >
    <input type="checkbox" name="ydq_apptype[]" value="教育" id="3">教育</input>
    </label>
    <label  class="checkbox-inline" >
    <input type="checkbox" name="ydq_apptype[]" value="实用工具" id="3"  >实用工具</input>
    </label>
    <label  class="checkbox-inline" >
    <input type="checkbox" name="ydq_apptype[]" value="游戏" id="3" >游戏</input>
    </label>
    <label  class="checkbox-inline" >
    <input type="checkbox" name="ydq_apptype[]" value="其他" id="3" >其他</input>
    </label>
    </div>


  <div class="form-group">
    <label for="2" class="col-sm-2 control-label">上传APP的LOGO：文件框，必填，图片大小不要超过1M</label>
    <div class="col-sm-10">
      <img src="/appstore/uploads/<?php echo ($one["ydq_logo"]); ?>"/>
      <input type="file" class="form-control" name="ydq_logo"  id="2">
    </div>
  </div>

    <div class="form-group">
    <label for="5" class="col-sm-2 control-label">详细介绍</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" name="ydq_intro"  id="5" value="<?php echo ($one["ydq_intro"]); ?>" placeholder="详细介绍" required="">
    </div>
  </div>



     <div class="form-group">
    <label  class="col-sm-2 control-label"></label>
    <div class="col-sm-10">
      <button type="submit" class="btn btn-success">提交</button>
      <button type="reset" class="btn btn-warning">重置</button>
    </div>
  </div>
</form>
        </div>
      </div>
    </div>

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
    <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
    <!-- Just to make our placeholder images work. Don't actually copy the next line! -->
    <script src="../../assets/js/vendor/holder.min.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
  </body>
</html>